import styles from './index.less';
import { Fragment } from 'react'
import { useModel } from 'umi'
import Header from './header';
import SelectLocale from './selectLocale';
import InviteUserComponent from '@/pages/components/inviteUsers';
import QRCodeModal from '@/pages/components/qrcodeModal';

export default function (props) {

  const hideHeader = ['/login', '/register', '/resetPass'].includes(
    props.location.pathname,
  );
  return <div className={styles.layout}>
    {!hideHeader ? <Fragment>
      <Header />
      <div className={styles.container}>{props.children}</div>
      
    </Fragment>
   : 
   <Fragment>
      <div className={styles.setLocale}>
        <SelectLocale />
      </div>
      <div className={styles.container2}>{props.children}</div>
    </Fragment>
  }
  <InviteUserComponent />

  <QRCodeModal
    // visible={Authenticated === 'N'}
    // qrcode={QRCode}
    // onScanne={onScanne}
    // close={onClose}
  />
  </div>

  
}
